<?php
namespace [MODULE]\Controller;
class [CONTROLLER]Controller extends [MODULE]BaseController {
   /***
    *@privilege [MODULE]:[DESCRIPTION]->添加:[UUID]
    */
    public function add()
    {
        if(IS_POST){
            $data = I('post.');
            $this->_addData('[MODEL]',$data);
        }else{
            $this->_display('edit','[DESCRIPTION]增加');
        }
    }
    /***
    *@privilege [MODULE]:[DESCRIPTION]->编辑:[UUID]
    */
    public function edit()
    {
        if(IS_POST){
            $data = I('post.');
            $this->_editData('[MODEL]',$data);
        }else{
            $info = $this->_detail('[MODEL]');
            $this->assign([
                'info' => $info
            ]);
            $this->_display('edit','[DESCRIPTION]编辑');
        }
    }
    /***
    *@privilege [MODULE]:[DESCRIPTION]->列表:[UUID]
    */
    public function lis()
    {
        $where = 1;
        $result = $this->_list('[MODEL]',$where,10);
        $this->assign($result);
        $this->_display('lis','[DESCRIPTION]列表');
    }
    /***
    *@privilege [MODULE]:[DESCRIPTION]->删除:[UUID]
    */
    public function del()
    {
        $this->_delAll('[MODEL]');
    }

}